package com.jungle.annotation;

import com.jungle.CompensateExecutorImportSelector;
import com.jungle.task.executor.CompensateTaskExecutor;
import com.jungle.task.executor.DefaultCompensateTaskExecutor;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * @author 李岩 at 2021/10/23.
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Import(CompensateExecutorImportSelector.class)
public @interface EnableFscCompensate {
    Class<? extends CompensateTaskExecutor> compensateExecutor() default DefaultCompensateTaskExecutor.class;
}
